<?php

namespace App\Model\Dao;

use \Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="videocomment")
 */
class VideoComment extends \Kdyby\Doctrine\Entities\BaseEntity{

    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="User")
     * @ORM\JoinColumn(name="userid", referencedColumnName="id")
     */
    private $user;
    
    /**
     * @ORM\ManyToOne(targetEntity="Video")
     * @ORM\JoinColumn(name="videoid", referencedColumnName="id")
     */
    private $video;
 
    /**
     * @ORM\Column(type="datetimetz")
     */
    private $published;
    
    /**
     * @ORM\Column(type="text")
     */
    private $content;
    
    public function setAll($user, $video, $published, $content){
      $this->user = $user;
      $this->video = $video;
      $this->published = $published;
      $this->content = $content;
    }

    public function getId() {
      return $this->id;
    }

    public function getUser() {
      return $this->user;
    }

    public function getVideo() {
      return $this->video;
    }

    public function getPublished() {
      return $this->published;
    }

    public function getContent() {
      return $this->content;
    }

    public function setId($id) {
      $this->id = $id;
    }

    public function setUser($user) {
      $this->user = $user;
    }

    public function setVideo($video) {
      $this->video = $video;
    }

    public function setPublished($published) {
      $this->published = $published;
    }

    public function setContent($content) {
      $this->content = $content;
    }




}

